<template>
	<!-- 最新资讯和一键解难  -->
	<view class="container">
		<view class="container-item" :style="{background:item.color}" v-for="(item,index) in list" :key="index"
			@click="show(item.url)">
			<view class="container-item-image">
				<image :src="item.src" mode=""></image>
			</view>
			<view class="container-item-text">
				<view class="container-item-title">
					{{item.title}}
				</view>
				<view class="container-item-tip">
					{{item.tip}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						id: 1,
						title: '红临E家',
						tip: '党建引领 开拓创新',
						src: '../../static/images/newIcon/new/zuixinzixun.png',
						color: '#FFF3F3',
						url: '/party/index/index'
					},
					{
						id: 2,
						title: '一键解难',
						tip: '一键申报 烦忧有人解',
						src: '../../static/images/newIcon/new/yijianjienan.png',
						color: ' #E8EFFF',
						url: '/ticketSystem/index/index'
					},
				]
			}
		},
		methods: {
			show(url) {
				uni.navigateTo({
					url: url
				})
			}
		}

	}
</script>

<style lang="scss" scoped>
	.container {
		padding: 0rpx 25rpx;
		display: flex;
		justify-content: space-between;

		.container-item {
			display: flex;
			padding: 24rpx 12rpx;
			border-radius: 8px;
			width: 49%;

			.container-item-image {
				width: 20%;
				text-align: center;
				display: flex;
				align-items: center;
				justify-content: center;

				image {
					// width: 70%;
					height: 60%;
				}
			}

			.container-item-text {
				width: 80%;
				padding-left: 10rpx;
				font-weight: bold;
				letter-spacing: 2rpx;

				.container-item-title {
					color: rgba(0, 0, 0, .48);
					margin-bottom: 10rpx;
					font-size: 32rpx;
				}

				.container-item-tip {
					color: rgba(0, 0, 0, .3);
					font-size: 24rpx;

				}

			}

		}

	}
</style>
